---
layout: "default"
title: "Reflectable"
description: "Swift documentation for 'Reflectable': Customizes the result of reflect(x), where x is a conforming."
keywords: "Reflectable,protocol,swift,documentation,getMirror"
root: "/v1.2"
---

<div class="intro-declaration"><code class="language-swift">protocol Reflectable</code></div>

<div class="discussion comment">
    <p>Customizes the result of <code>reflect(x)</code>, where <code>x</code> is a conforming
type.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>







<h3>Instance Methods</h3>
<div class="declaration" id="func-getmirror">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-getmirror">func getMirror()</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-getmirror"><div class="p">
    <p>Returns a mirror that reflects <code>self</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func getMirror() -&gt; MirrorType</code>
    
    
</div></div>
</div>


